<template>
  <div class="center-modes" @click="userClick">
    <div class="modes-item">
      <img class="modes-item-img" :src="flagImg" alt="flagImg" />
      <div class="modes-item-text">中控台</div>
    </div>
    <div class="modes-item">
      <img class="modes-item-img" :src="waterdrop" alt="flagImg" />
      <div class="modes-item-text">仪器管理</div>
    </div>
    <div class="modes-item">
      <img class="modes-item-img" :src="worker" alt="flagImg" />
      <div class="modes-item-text">测站配置</div>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { ElMessage } from 'element-plus';
  import { flagImg, waterdrop, worker } from '../filePath';
  const userClick = () => {
    ElMessage.warning('功能开发中, 0.0');
  }
</script>

<style lang="less" scoped>
  .center-modes {
    width: 100%;
    display: flex;
    height: calc(100% - 530px);
    justify-content: space-around;
    // 如果要添加站点 图例版 展示与隐藏那么这里就要底部对齐
    .modes-item {
      flex: 1;
      display: flex;
      align-items: center;
      flex-direction: column;
      justify-content: center;
      .modes-item-img {
        width: 100px;
        height: 120px;
      }
      .modes-item-text {
        font-family: youshe;
        font-size: 30px;
        color: white;
        margin-top: 20px;
      }
    }
  }
</style>